package cn.touna.jss.common.properties.disconf;

import com.baidu.disconf.client.common.annotations.DisconfFile;
import com.baidu.disconf.client.common.annotations.DisconfFileItem;
import org.springframework.stereotype.Component;

/**
 * 人脸识别配置信息
 * <p>
 * Created by Jerry on 2017/7/14.
 */
@Component
//@ConfigurationProperties(prefix = "linkface")
//@PropertySource("classpath:properties/linkface.properties")
@DisconfFile(targetDirPath = "disconf", filename = "linkface.properties")
public class LinkfaceProperties {

    private String apiId;

    private String apiSecret;

    private String livenessUrl;

    @DisconfFileItem(name = "linkface.apiId", associateField = "apiId")
    public String getApiId() {
        return apiId;
    }

    public void setApiId(String apiId) {
        this.apiId = apiId;
    }

    @DisconfFileItem(name = "linkface.apiSecret", associateField = "apiSecret")
    public String getApiSecret() {
        return apiSecret;
    }

    public void setApiSecret(String apiSecret) {
        this.apiSecret = apiSecret;
    }

    @DisconfFileItem(name = "linkface.livenessUrl", associateField = "livenessUrl")
    public String getLivenessUrl() {
        return livenessUrl;
    }

    public void setLivenessUrl(String livenessUrl) {
        this.livenessUrl = livenessUrl;
    }
}
